<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
    <script src="index.js"></script>
    <link rel="stylesheet" href="index.css">
    <style>
        .el-header, .el-footer {
            background-color: #B3C0D1;
            color: #333;
            text-align: right;
            line-height: 60px;
        }

        .el-aside {
            background-color: #D3DCE6;
            color: #333;
            text-align: center;
            line-height: 200px;
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
        }

        /*找到html标签、body标签，和挂载的标签*/
        /*都给他们统一设置样式*/
        html,body,.el-container{
            /*设置内部填充为0，几个布局元素之间没有间距*/
            padding: 0px;
            /*外部间距也是如此设置*/
            margin: 0px;
            /*统一设置高度，高度自行调整*/
            height: 1200px;
        }

    </style>
    <style>
        .el-dropdown-link {
            cursor: pointer;
            color: #409EFF;
        }
        .el-icon-arrow-down {
            font-size: 12px;
        }
    </style>


</head>
<body>
        <div id="app">
            <el-container>
                <el-header>
                    <el-dropdown>
                  <span class="el-dropdown-link">
                    用户中心<i class="el-icon-arrow-down el-icon--right"></i>
                  </span>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item>密码修改</el-dropdown-item>
                            <el-dropdown-item>用户退出</el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>
                </el-header>
                <el-container>
                    <el-aside>
                        <el-menu
                                default-active="2"
                                class="el-menu-vertical-demo"
                        >
                            <el-submenu index="1">
                                <template slot="title">
                                    <i class="el-icon-time"></i>
                                    <span>预约管理</span>
                                </template>
                                <el-menu-item-group>
                                    <el-menu-item index="1-1">
                                        <a href="ordersetting.html">预约列表</a>
                                    </el-menu-item>
                                    <el-menu-item index="1-2"><a href="#">检查项管理</a></el-menu-item>
                                    <el-menu-item index="1-3"><a href="#">检查组管理</a></el-menu-item>
                                    <el-menu-item index="1-4"><a href="#">预约周期</a></el-menu-item>
                                </el-menu-item-group>
                            </el-submenu>

                            <el-submenu index="2">
                                <template slot="title">
                                    <i class="el-icon-time"></i>
                                    <span>会员管理</span>
                                </template>
                                <el-menu-item-group>
                                    <el-menu-item index="2-1"><a href="#">会员信息</a></el-menu-item>
                                    <el-menu-item index="2-2"><a href="#">会员列表</a></el-menu-item>
                                    <el-menu-item index="2-3"><a href="#">会员说明</a></el-menu-item>
                                    <el-menu-item index="2-4"><a href="#">会员活动</a></el-menu-item>
                                </el-menu-item-group>
                            </el-submenu>

                        </el-menu>

                    </el-aside>
                    <el-main>
                        <el-table
                                :data="tableData"
                                border
                                style="width: 100%">
                            <el-table-column
                                    fixed
                                    prop="date"
                                    label="日期"
                                    width="150">
                            </el-table-column>
                            <el-table-column
                                    prop="name"
                                    label="姓名"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="province"
                                    label="省份"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="city"
                                    label="市区"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="address"
                                    label="地址"
                                    width="300">
                            </el-table-column>
                            <el-table-column
                                    prop="address"
                                    label="地址"
                                    width="300">
                            </el-table-column>
                            <el-table-column
                                    prop="zip"
                                    label="邮编"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    fixed="right"
                                    label="操作"
                                    width="100">
                                <template slot-scope="scope">
                                    <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
                                    <el-button type="text" size="small">编辑</el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </el-main>
                </el-container>
                <el-container>
                    <el-footer>底部区域</el-footer>
                </el-container>
            </el-container>
        </div>
<script>
    var  vm = new Vue({
        el:"#app",
        methods:{

            handleClick(row){
                alert(row.date)
            }

        },
        data(){
            return{
                tableData: [{
                    date: '2016-05-01',
                    name: '王小虎',
                    province: '上海',
                    city: '普陀区',
                    address: '上海市普陀区金沙江路 1518 弄',
                    zip: 200333
                }, {
                    date: '2016-05-04',
                    name: '王小虎',
                    province: '上海',
                    city: '普陀区',
                    address: '上海市普陀区金沙江路 1517 弄',
                    zip: 200333
                }, {
                    date: '2016-05-01',
                    name: '王小虎',
                    province: '上海',
                    city: '普陀区',
                    address: '上海市普陀区金沙江路 1519 弄',
                    zip: 200333
                }, {
                    date: '2016-05-03',
                    name: '王小虎',
                    province: '上海',
                    city: '普陀区',
                    address: '上海市普陀区金沙江路 1516 弄',
                    zip: 200333
                }, {
                    date: '2016-05-03',
                    name: '王小虎',
                    province: '上海',
                    city: '普陀区',
                    address: '上海市普陀区金沙江路 1516 弄',
                    zip: 200333
                }

                ]
            }
        }
    })
</script>
</body>
</html>